package pers.cz.support;

import java.sql.Connection;
import java.sql.Statement;

/**
 * @program: PostGirl-panent
 * @description: 数据库操作监听器，用来在sql执行的前后做一些事情
 * @author: Cheng Zhi
 * @create: 2023-02-24 10:43
 **/
public interface DbOperatorListener {

    public void beforeSelect(String sql, Connection connection, Statement statement);
    public void afterSelect(String sql, Connection connection, Statement statement);
    public void beforeInsert(String sql, Connection connection, Statement statement);
    public void afterInsert(String sql, Connection connection, Statement statement);
    public void beforeDelete(String sql, Connection connection, Statement statement);
    public void afterDelete(String sql, Connection connection, Statement statement);
    public void beforeUpdate(String sql, Connection connection, Statement statement);
    public void afterUpdate(String sql, Connection connection, Statement statement);


}
